package com.umgsai.thread.thread05;

public class Service {
	synchronized public void testMethod(){
		if (Thread.currentThread().getName().equals("a")) {
			System.out.println("ThreadName=a, beginTime=" + System.currentTimeMillis());
			System.out.println("Exception time=" + System.currentTimeMillis());
			Integer.parseInt("hello");//抛异常
		}else {
			System.out.println("Other thread begin Time =" + System.currentTimeMillis());
		}
	}
}
